<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script src="https://cdn.staticfile.org/jquery/2.2.4/jquery.min.js"></script>
    <script>
        $(function () {
            $(".uls li").click(function () {
                $(this).css({"background":"red"})
                $(this).siblings().css({"background":"white"})
            })
        })

    </script>
    <div>
        <ul class="uls">
            <li>1</li>
            <li>1</li>
            <li>1</li>
            <li>1</li>
            <li>1</li>
        </ul>
    </div>
    <style>
        li {
            border: 1px solid black;
            width: 20%;
            text-align: center;
            line-height: 40px;
        }
    </style>
</body>

</html>